import torch
import numpy as np
# # a = torch.tensor(2.0, requires_grad=True)
# # c = torch.tensor(2.0, requires_grad=True)
# # b = a.exp()
# # print(b)
# #
# # print(b)
# # print(b)
#
#
# a = np.array([[1,2,3],
#               [1,1,1],
#               [2,2,2]])
# # print(a)
# # b = np.array([[1,1,1],
# #               [2,1,1],
# #               [1,1,1]])
# # print(a+b)
# # c = np.array([[1,10,1]])
# # print(a+c)
#
# d = [1,10,1]
# print(a+d)

# a = np.array([1,1,2])
# b= np.array([[1],
#              [2],
#              [1]])
# c= np.array([1,1,2])
#
# print(a.dot(c))

# a = np.array([[1,1],
#               [2,2],
#               [3,3],
#               [4,4]])
# b = np.array([2,2])
#
# print(a.dot(b))

a = np.array([[1],
              [2],
              [3],
              [4],
              [5],
              [6],
              [7],
              [8]])
b = np.array([1,1,1,1,1,1,1,1])
print(a-b)

